package com.example.blog.dto.writing;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
public class AdminWritingsUpdateDto {
    @NotBlank(message = "不能为空")
    private String body;  //文章内容
    @TableField("image")
    private String img; //文章图片
    @NotBlank(message = "不能为空")
    private String title; //文章标题
    @NotBlank(message = "不能为空")
    private String wid; //文章编号
    @NotBlank(message = "不能为空")
    private Long uid; //作者编号
    private String type; //文章标签类型
    private Integer encrypt;//文章是否加密
    private String password; //文章加密密码
    @Min(value = 1,message = "状态错误")
    private Integer status;
}
